<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body id="index_setting">
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_01')?></cite></a>
        <a href="javascript:;"><?=L('tpl_02')?></a>
        <a href="<?=site_url('homes')?>"><?=L('tpl_03')?></a>
    </span>
    <fieldset class="layui-elem-field" style="margin-top: 15px;">
        <legend><?=L('tpl_03')?></legend>
        <div class="layui-field-box">
            <form class="layui-form layui-form-pane" action="<?=site_url('homes/save')?>" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_04')?></label>
                    <div class="layui-input-inline" onclick="cscms.show_hide('ym','Home_Ym')">
                        <input type="radio" name="Home_Ym" value="1" title="<?=L('tpl_05')?>" <?php if(Home_Ym==1){echo 'checked';}?> >
                        <input type="radio" name="Home_Ym" value="0" title="<?=L('tpl_06')?>" <?php if(Home_Ym==0){echo 'checked';}?> >
                    </div>
                </div>
                <div class="layui-form-item ym ym1" <?php if(Home_Ym==0){echo 'style="display:none"';}?>>
                    <label class="layui-form-label"><?=L('tpl_07')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="Home_YmUrl"  value="<?=Home_YmUrl?>" placeholder="<?=L('tpl_08')?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_09')?></label>
                    <div class="layui-input-inline">
                        <input type="radio" name="Home_Mode" value="1" title="<?=L('tpl_05')?>" <?php if(Home_Mode==1){echo 'checked';}?> >
                        <input type="radio" name="Home_Mode" value="0" title="<?=L('tpl_06')?>" <?php if(Home_Mode==0){echo 'checked';}?> >
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_10')?></label>
                    <div class="layui-input-inline">
                        <input type="radio" name="Home_Fs" value="2" title="<?=L('tpl_16')?>" <?php if(Home_Fs==2){echo 'checked';}?> >
                        <input type="radio" name="Home_Fs" value="1" title="<?=L('tpl_17')?>" <?php if(Home_Fs==1){echo 'checked';}?> >
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_11')?></label>
                    <div class="layui-input-inline">
                        <input type="radio" name="Home_Hits" value="2" title="<?=L('tpl_05')?>" <?php if(Home_Hits==2){echo 'checked';}?> >
                        <input type="radio" name="Home_Hits" value="1" title="<?=L('tpl_06')?>" <?php if(Home_Hits==1){echo 'checked';}?> >
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label"><?=L('tpl_12')?><span><?=L('tpl_13')?></span></label>
                    <div class="layui-input-block">
                        <textarea name="Home_Ymext" class="layui-textarea"><?=Home_Ymext?></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block layui-input-common noborder">
                        <button class="layui-btn" lay-submit lay-filter="setting"><?=L('tpl_14')?></button>
                        <button type="reset" class="layui-btn layui-btn-primary"><?=L('tpl_15')?></button>
                    </div>
                </div>
            </form>
        </div>
    </fieldset>
    <script type="text/javascript">
        cscms.init();
    </script>
</body>
</html>
